//
//  SHLoginCMSModle.h
//  SmartHome
//
//  Created by 程杰 on 16/4/13.
//  Copyright © 2016年 妙联. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol sendPuidStateDelegate <NSObject>
//传puid和状态
-(void)sendPuid:(NSString*)PuidString sendState:(NSString*)StateString
   sendSequence:(NSString*)sequenceStr;

//传值令
-(void)sendOlder:(NSString*)OlderStr;
@end

@interface SHLoginCMSModle : NSObject
@property(nonatomic,assign)id<sendPuidStateDelegate>sendPUdelegate;
@property(nonatomic,strong)NSString *promptStr;
@property(nonatomic,strong)NSString *urlServer;

//单例
+ (instancetype)shareInstence;


////关闭掉socket
//- (void)activedisconnect;


//调用发包可以连接cms  登录  发送心跳包
-(void)connectCMSgetName:(NSString*)userName getPaw:(NSString*)paw sendBlcok:(void(^)(id obj))block;


//退出登录
-(void)Loginout;



//发送指令(透传信息)(cu 到  pu)
-(void)sendOlderToPu:(NSString*)OlderStr  getPuid:(NSNumber*)puid;



@end
